#include "render/RendererAPI.h"
#include "VertexArray.h"
#include "render/OpenGL/OpenGLVertexArray.h"

namespace Cogs {
	std::shared_ptr<VertexArray> VertexArray::Create() {
		switch (RendererAPI::GetAPIType()) {
			case RendererAPIType::OpenGL: return std::make_shared<OpenGLVertexArray>(); break;
			case RendererAPIType::None:
				__debugbreak();
				return nullptr;
			default:
				__debugbreak();
				return nullptr;
		}
	}
}